<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>01.固定高度和宽度gird</title>
  <style>
    .box{
      display: grid;
      background-color: pink;
      grid-template-columns: 100px 100px 100px;
    }

    .box1{
      display: grid;
      background-color: pink;
      grid-template-columns: 100px 200px 300px;
    }

    .item{
      border: 1px solid #ddd;
      background-color: blueviolet;
      border-radius: 5px;
      font-size: 18px;
      text-align: center;
    }

  </style>

</head>
<body>

  <br />
  <h4>子项每个部分占100px宽度</h4>
  <div class="box">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
    <div class="item">5</div>
    <div class="item">6</div>
    <div class="item">7</div>
    <div class="item">8</div>
    <div class="item">9</div>
  </div>

  <br />
  <h4>100px 200px 300px</h4>
  <div class="box1">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
    <div class="item">5</div>
    <div class="item">6</div>
    <div class="item">7</div>
    <div class="item">8</div>
    <div class="item">9</div>
  </div>
  
</body>
</html>